from pymongo import MongoClient

#try mongodb
client = MongoClient('mongodb://root:19930309@dds-uf6773d77c87f4341.mongodb.rds.aliyuncs.com:3717,dds-uf6773d77c87f4342.mongodb.rds.aliyuncs.com:3717/admin?replicaSet=mgset-4868049')
# client = MongoClient('mongodb://root:930309!jyd@dds-uf6773d77c87f4341.mongodb.rds.aliyuncs.com:3717')
db = client.test_database
collection = db.test_collection

print(db.collection_names(include_system_collections=False))
